package com.ishansong.ticket.controller;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by saiyin on 15/8/19.
 *
 */
public class BaseController {
    @ExceptionHandler(Exception.class)
    @ResponseBody
    public int errorResponse(Exception e, HttpServletRequest request) {
        return 0;
    }
}
